﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Cart.aspx.cs" Inherits="OLMS.Cart" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

        <div class="pure-g">
            <div class="pure-u-3-5">
                <h2>购物车</h2>
            </div>
            <div class="pure-u-2-5">
                <asp:LinkButton ID="btnClearCart" CssClass="button-default pure-button" runat="server" OnClick="btnClearCart_Click">清空购物车</asp:LinkButton>
                <asp:LinkButton ID="btnOrder" runat="server" CssClass="button-default pure-button pure-button-primary" OnClick="btnOrder_Click">结算</asp:LinkButton>
            </div>
            <div class="pure-u-1">
                <table class="pure-table pure-table-bordered pure-table-striped">
                    <thead>
                        <tr>
                            <th>专辑</th>
                            <th>歌手</th>
                            <th>单价</th>
                            <th>数量</th>
                            <th>小计</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="repAlbumsList" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td><%# Eval("AlbumsTitle") %></td>
                                    <td><%# Eval("ArtistName") %></td>
                                    <td><%# Eval("Price") %></td>
                                    <td><%# Eval("Count") %></td>
                                    <td><%# Eval("ItemPrice") %></td>
                                    <td>
                                        <asp:LinkButton ID="btnRemove" runat="server" CommandArgument='<%# Eval("CartId") %>' CssClass="button-default pure-button pure-button-primary" OnCommand="btnRemove_Command">删除</asp:LinkButton>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                        <tr>
                            <td colspan="7" style="text-align:right">
                                <asp:Label ID="lblTotal" runat="server" Text="总计"></asp:Label>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>



</asp:Content>
